package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 神龙劵对象 user_coupon
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class UserCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户的id */
    @Excel(name = "用户的id")
    private Long userId;

    /** 开奖最小值 */
    @Excel(name = "开奖最小值")
    private Long min;

    /** 开奖最大值 */
    @Excel(name = "开奖最大值")
    private Long max;

    /** 开奖金额 */
    @Excel(name = "开奖金额")
    private Long num;

    /** 1:未使用 2.参与中 3已开劵 */
    @Excel(name = "1:未使用 2.参与中 3已开劵")
    private Integer status;

    /** 来源：1 购物获得 2帮开劵获得 */
    @Excel(name = "来源：1 购物获得 2帮开劵获得")
    private Integer type;

    /** 神龙劵名称 */
    @Excel(name = "神龙劵名称")
    private String title;

    /** 来源id （订单、邀请用户） */
    @Excel(name = "来源id ", readConverterExp = "订=单、邀请用户")
    private Long fromId;

    /** 获取时间 */
    @Excel(name = "获取时间")
    private Long addtime;

    /** 开奖时间 */
    @Excel(name = "开奖时间")
    private Integer kTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long creator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMin(Long min) 
    {
        this.min = min;
    }

    public Long getMin() 
    {
        return min;
    }
    public void setMax(Long max) 
    {
        this.max = max;
    }

    public Long getMax() 
    {
        return max;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setFromId(Long fromId) 
    {
        this.fromId = fromId;
    }

    public Long getFromId() 
    {
        return fromId;
    }
    public void setAddtime(Long addtime) 
    {
        this.addtime = addtime;
    }

    public Long getAddtime() 
    {
        return addtime;
    }
    public void setkTime(Integer kTime) 
    {
        this.kTime = kTime;
    }

    public Integer getkTime() 
    {
        return kTime;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("min", getMin())
            .append("max", getMax())
            .append("num", getNum())
            .append("status", getStatus())
            .append("type", getType())
            .append("title", getTitle())
            .append("fromId", getFromId())
            .append("addtime", getAddtime())
            .append("kTime", getkTime())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .toString();
    }
}
